<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    /**
     * 如果子类没有设置表名，则自动生成蛇形表明如:UserGoodsModel => user_goods
     *
     * @return string
     */
    public function getTable(){
        return $this->table;
    }
}
